/*
 * File: ambientLightCtrl.h
 *
 * Code generated for Simulink model 'ambientLightCtrl'.
 *
 * Model version                  : 1.5
 * Simulink Coder version         : 9.4 (R2020b) 29-Jul-2020
 * C/C++ source code generated on : Wed May  8 14:54:22 2024
 *
 * Target selection: ert.tlc
 * Embedded hardware selection: Intel->x86-64 (Windows64)
 * Code generation objectives: Unspecified
 * Validation result: Not run
 */

#ifndef RTW_HEADER_ambientLightCtrl_h_
#define RTW_HEADER_ambientLightCtrl_h_
#ifndef ambientLightCtrl_COMMON_INCLUDES_
#define ambientLightCtrl_COMMON_INCLUDES_
#include "rtwtypes.h"
#endif                                 /* ambientLightCtrl_COMMON_INCLUDES_ */

#include "ambientLightCtrl_types.h"

/* Macros for accessing real-time model data structure */
#ifndef rtmGetErrorStatus
#define rtmGetErrorStatus(rtm)         ((rtm)->errorStatus)
#endif

#ifndef rtmSetErrorStatus
#define rtmSetErrorStatus(rtm, val)    ((rtm)->errorStatus = (val))
#endif

/* Block states (default storage) for system '<S1>/Subsystem' */
typedef struct {
  real_T Delay_DSTATE;                 /* '<S2>/Delay' */
  boolean_T Subsystem_MODE;            /* '<S1>/Subsystem' */
} DW_Subsystem_ambientLightCtrl_T;

/* Block states (default storage) for system '<Root>' */
typedef struct {
  real_T Delay1_DSTATE[100];           /* '<S1>/Delay1' */
  real_T Delay_DSTATE[100];            /* '<S1>/Delay' */
  int32_T clockTickCounter;            /* '<S1>/Pulse Generator' */
  DW_Subsystem_ambientLightCtrl_T Subsystem2;/* '<S1>/Subsystem2' */
  DW_Subsystem_ambientLightCtrl_T Subsystem1;/* '<S1>/Subsystem1' */
  DW_Subsystem_ambientLightCtrl_T Subsystem;/* '<S1>/Subsystem' */
} DW_ambientLightCtrl_T;

/* External inputs (root inport signals with default storage) */
typedef struct {
  real_T sw_pulse;                     /* '<Root>/sw_pulse' */
} ExtU_ambientLightCtrl_T;

/* External outputs (root outports fed by signals with default storage) */
typedef struct {
  real_T ambient_red;                  /* '<Root>/ ambient_red' */
  real_T ambient_green;                /* '<Root>/ ambient_green' */
  real_T ambient_blue;                 /* '<Root>/ ambient_blue' */
  real_T pulse_signal;                 /* '<Root>/  pulse_signal' */
} ExtY_ambientLightCtrl_T;

/* Real-time Model Data Structure */
struct tag_RTM_ambientLightCtrl_T {
  const char_T * volatile errorStatus;
};

/* Block states (default storage) */
extern DW_ambientLightCtrl_T ambientLightCtrl_DW;

/* External inputs (root inport signals with default storage) */
extern ExtU_ambientLightCtrl_T ambientLightCtrl_U;

/* External outputs (root outports fed by signals with default storage) */
extern ExtY_ambientLightCtrl_T ambientLightCtrl_Y;

/* Model entry point functions */
extern void ambientLightCtrl_initialize(void);
extern void ambientLightCtrl_step(void);
extern void ambientLightCtrl_terminate(void);

/* Real-time Model object */
extern RT_MODEL_ambientLightCtrl_T *const ambientLightCtrl_M;

/*-
 * These blocks were eliminated from the model due to optimizations:
 *
 * Block '<Root>/Scope' : Unused code path elimination
 */

/*-
 * The generated code includes comments that allow you to trace directly
 * back to the appropriate location in the model.  The basic format
 * is <system>/block_name, where system is the system number (uniquely
 * assigned by Simulink) and block_name is the name of the block.
 *
 * Use the MATLAB hilite_system command to trace the generated code back
 * to the model.  For example,
 *
 * hilite_system('<S3>')    - opens system 3
 * hilite_system('<S3>/Kp') - opens and selects block Kp which resides in S3
 *
 * Here is the system hierarchy for this model
 *
 * '<Root>' : 'ambientLightCtrl'
 * '<S1>'   : 'ambientLightCtrl/Subsystem3'
 * '<S2>'   : 'ambientLightCtrl/Subsystem3/Subsystem'
 * '<S3>'   : 'ambientLightCtrl/Subsystem3/Subsystem1'
 * '<S4>'   : 'ambientLightCtrl/Subsystem3/Subsystem2'
 */
#endif                                 /* RTW_HEADER_ambientLightCtrl_h_ */

/*
 * File trailer for generated code.
 *
 * [EOF]
 */
